package net.hekka.canyoutalk.share.property;

import java.util.Enumeration;
import java.util.Hashtable;
import java.util.List;

/**
 * Request 객체의 Parameters를 저장하기 위한 Hashtable 클래스.
 * @author Jeffrey Ha
 */
public class RequestParameterHashtable extends Hashtable<String, List<String>> {

    public String toString() {
        String returnString = "#";
        Enumeration keys = this.keys();

        while (keys.hasMoreElements()) {
            String key = (String) keys.nextElement();
            List<String> values = this.get(key);
            returnString = returnString + "\n{KEY [" + key + "] VALUES ";
            for (int i = 0; i < values.size(); i++) {
                returnString = returnString + "[" + values.get(i) + "] ";
            }
            returnString = returnString + "} ";
        }
        return returnString;
    }

}
